package com.sanss.log_plat.access;

public class ElasticsearchClient {

    public static void main(String[] args) {
//        // on startup
//        Settings settings = Settings.settingsBuilder()
//                .put("cluster.name", "myClusterName").build();
//        TransportClient client = TransportClient.builder().settings(settings).build()
//                .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300))
//                .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300));
//
//// on shutdown
//
//        client.close();


    }
}
